package com.sen.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName: Catelog2Vo
 * @Title: gulimall
 * @Package: com.sen.gulimall.product.vo
 * @Description: 二级分类Vo
 * @Author: Kisen
 * @Date: 2022/3/22 17:11
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo {

    private String catalog1Id; //1级父分类id
    private List<Catelog3Vo> catalog3List;  //三级子分类
    private String id;
    private String name;

    /**
     * 三级分类Vo
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3Vo {

        private String catalog2Id; //父分类，2级分类id
        private String id;
        private String name;
    }
}
